-
Notifications
You must be signed in to change notification settings - Fork 38.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move extensions.LabelSelector to unversioned #20492
Conversation
@kubernetes/goog-csi |
Request quick review as I have like 5 PRs that stack on top of this that I need to get in this week. |
Labelling this PR as size/XL |
GCE e2e test build/test passed for commit fd6688b866208c81499ebf24ab3dcdf0552b4217. |
I will look more closely momentarily, but I think @smarterclayton and I both want stuff like this to go into a "common" group, and avoid making the unversioned group contain more things. |
Would you pretty please consider deferring that improvement until next week? You can even assign to me once you and clayton pick a name. |
Will fix: import loop with labelSelector #20462 |
Summary of IRL conversation: I asked for comments in the unversioned package to make it clear which types are serialized over the wire and which are merely shared internal code. |
Added warning. |
LGTM, minor nits. self-apply the label when you fix, thanks. |
GCE e2e test build/test passed for commit fa2dfe8073d49fb5b75a79da63de4fc62f9fca77. |
PR changed after LGTM, removing LGTM. |
GCE e2e test build/test passed for commit a5dad111e488a6da7e6c8caa09489950271346b9. |
Need a pkg/apis/unversioned --> pkg/api/unversioned somewhere, unit tests don't build. |
GCE e2e build/test failed for commit 0faa06a5683295e501db68f52aecf5a2f7777dae. |
GCE e2e test build/test passed for commit fd52040a6697e9e967cc4050568ce5e2ee38d79d. |
PR needs rebase |
PR changed after LGTM, removing LGTM. |
PR changed after LGTM, removing LGTM. |
GCE e2e test build/test passed for commit c90a8e08b121e6f38c21749b97646e72a12e7947. |
GCE e2e test build/test passed for commit a5093bbd286d9c4aa9ed1c2cbd907c583f47e71b. |
@k8s-bot please test |
Move type LabelSelector and type LabelSelectorRequirement from pkg/apis/extensions This avoids an import loop when Job (and later DaemonSet, Deployment, ReplicaSet) are moved out of extensions to new api groups. Also Move LabelSelectorAsSelector utility from pkg/apis/extensions/ to pkg/api/unversioned/ Also its test. Also LabelSelectorOp* constants. Also the pkg/apis/extensions/validation functions ValidateLabelSelectorRequirement and ValidateLabelSelector move to pkg/api/unversioned The related type in pkg/apis/extensions/v1beta1/ is staying there. I might move it in another PR if neccessary.
PR changed after LGTM, removing LGTM. |
GCE e2e test build/test passed for commit eba2c56. |
Travis continuous integration appears to have missed, closing and re-opening to trigger it |
Move extensions.LabelSelector to unversioned
Move type LabelSelector and type LabelSelectorRequirement from pkg/apis/extensions. This avoids an import loop when Job (and later DaemonSet, Deployment, ReplicaSet) are moved out of extensions to new api groups.
Also Move LabelSelectorAsSelector utility from pkg/apis/extensions/ to pkg/api/unversioned/. Also its test. Also LabelSelectorOp* constants. Also the pkg/apis/extensions/validation functions ValidateLabelSelectorRequirement and ValidateLabelSelector move to pkg/api/unversioned
The related type in pkg/apis/extensions/v1beta1/ is staying there. I might move
it in another PR if neccessary.